<template>
  <div class="depInfo">
    <div class="menu">
      <a-tabs default-active-key="1" tab-position="left" class="menuTap" @change="changeTab">
        <a-tab-pane key="1" tab="添加员工">
          <employ v-if="key == 1" :status="2" />
        </a-tab-pane>

        <a-tab-pane key="2" tab="添加待入职员工">
          <employ v-if="key == 2" :status="1" />
        </a-tab-pane>
      </a-tabs>
    </div>
  </div>
</template>

<script>
import employ from "./component/employee";

export default {
  name: "AddEmpInfo",
  components: { employ },
  data() {
    return {
      key: 1
    };
  },
  methods: {
    changeTab(e) {
      this.key = e;
    }
  }
};
</script>

<style lang="scss" scoped>
.depInfo {
  background: #fff;
}

.depInfo .menuTap >>> .ant-tabs-bar {
  background: white;
}

.depInfo .menuTap >>> .ant-tabs-tab {
  width: 160px;
  text-align: center;
  height: 56px;
  line-height: 60px;
  font-size: 14px;
  padding: 0;
  font-weight: 500;
}
</style>
